package com.gxa.springcloud324;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 *EnableEurekaClient注解表明当前启动的是一个要被注册到eureka的服务,
 从springcloud D版本之后就可以省略
 *EnableDiscoveryClient:被注册中心发现, 也有类似的特点,可以省略,
 更推荐,它就包含了EnableEurekaClient
 *
 * @author bill
 * @date 2021/12/29 16:51
 */

@SpringBootApplication
/*@EnableDiscoveryClient
@EnableEurekaClient*/
public class EurekaProviderApp {
    public static void main(String[] args) {
        SpringApplication.run(EurekaProviderApp.class);
    }
}
